package com.hermit.server.dto;

/** Dto类 */
public class CategoryDto {
    private String id;
    private String parent;
    private String name;
    private Integer sort;
    /**set与get方法  */
    public String getId(){
        return id;
    }

    public void setId(String id){
        this.id = id;
    }
    public String getParent(){
        return parent;
    }

    public void setParent(String parent){
        this.parent = parent;
    }
    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = name;
    }
    public Integer getSort(){
        return sort;
    }

    public void setSort(Integer sort){
        this.sort = sort;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(",id=").append(id);
        sb.append(",parent=").append(parent);
        sb.append(",name=").append(name);
        sb.append(",sort=").append(sort);
        sb.append("]");
        return sb.toString();
    }
}